package top.chenfu.blog.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import top.chenfu.blog.entity.Tags;

import java.util.List;

/**
 * @Auther chenfu
 * @2019/11/1 10:19
 * @Desc
 */
@Repository
public interface TagsMapper extends Mapper<Tags> {

    Integer deleteTagsByAid(Long id);

    Integer saveTags(@Param("tags") List<String> tags);

    List<Long> getTagsIdByTagName(@Param("tagNames") List<String> tagNames);

    Integer saveArticleTags(@Param("aid") Long aid, @Param("tagId") Long tagId);
}
